//
//  SWInvitation.swift
//  ChildStory
//
//  Created by linhan on 16/9/12.
//  Copyright © 2016年 Aiya. All rights reserved.
//

import Foundation
class SWInvitation: NSObject
{
    //邀请函ID
    var invitationID:String = ""
    var phone:String?
    var uid:String?
    var screenName:String?
    var avatarURL:String?
    //宝宝的家长名称
    var roleName:String?
    var babiesNames:[String]?
    
    convenience init?(invitation:SWInvitationRsp)
    {
        guard let invitationID = invitation.invitationID , invitationID != 0 else {
            return nil
        }
        self.init()
        self.invitationID = "\(invitationID)"
        phone = invitation.phone
        uid = invitation.uid
        screenName = invitation.screenName
        roleName = invitation.roleName
        babiesNames = invitation.babiesNames
    }
}
